﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frmRegister.aspx.cs" Inherits="Meotom.Upload.v2.Account.FrmRegister" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Đăng ký</title>
    <style type="text/css">
        * { margin: 0; padding: 0; }
        body { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12px; background-color: #EEEEEE; }
        .LoginFrm { background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #E5E5E5; border-radius: 10px 10px 10px 10px; float: left; font-weight: normal; margin-left: 8px; margin-top: 20px; padding: 16px 16px 15px; width: 430px; }
        .pLogin, .inline { color: #777777; font-size: 13px; }
        .login_right input { background: none repeat scroll 0 0 #FBFBFB; border: 1px solid #E5E5E5; font-size: 24px; margin-bottom: 16px; margin-right: 6px; margin-top: 2px; padding: 3px; width: 97%; width: 415px; }
        .loginLine { float: left; width: 100%; }
        .submit { border: 1px solid #DFDFDF; cursor: pointer; font-size: 21px !important; line-height: 16px; width: auto !important; color: #FFF; padding: 5px !important; }
        .failureNotification { color: #FF0000; float: left;width: 100%; }
        .ctLogin { float: left; }
        #divLoading { color: #000; position: fixed; top: 0px; left: 0px; line-height: 26px; z-index: 100; padding-left: 10px; padding-right: 10px; font-weight: bold; border: solid 0px #FFF; background-color: #CCC; display: none; }
    </style>
    <script type="text/javascript" language="javascript" src="/Library/AjaxRequest.js"></script>
    <script type="text/javascript" language="javascript" src="/Library/jquery.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Services/HttpCombiner.ashx?s=FileSet_JS&amp;t=text/javascript"></script>
    <script language="javascript" type="text/javascript">
        if (window == window.top) {
            location.href = "/";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="divLoading" runat="server">
        <ProgressTemplate>
            Loading... Please wait!
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="LoginFrm clearfix">
                <h2>
                    Đăng ký thành viên</h2>
                <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="failureNotification"
                    ValidationGroup="LoginUserValidationGroup" ShowSummary="false" ShowMessageBox="False" />
                <div style="margin-top: 20px; float: left;">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
                        ControlToValidate="txtUserName" CssClass="failureNotification" ErrorMessage="* Tên đăng nhập không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Tên đăng nhập không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
                        ControlToValidate="txtPassword" CssClass="failureNotification" ErrorMessage="* Mật khẩu không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Mật khẩu không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                        ControlToValidate="txtPassword2" Display="Dynamic" ErrorMessage="* Xin vui lòng xác nhận mật khẩu"
                        ForeColor="Red" ValidationGroup="LoginUserValidationGroup" CssClass="failureNotification">* Xin vui lòng xác nhận mật khẩu<br /></asp:CompareValidator>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" Display="Dynamic"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="* Email không được để trống."
                        ValidationGroup="LoginUserValidationGroup">* Email không được để trống.<br /></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="EmailValidate" runat="server" Display="Dynamic"
                        ControlToValidate="txtEmail" CssClass="failureNotification" ErrorMessage="* Email sai định dạng."
                        ValidationGroup="LoginUserValidationGroup" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">* Email sai định dạng.<br /></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic"
                        ControlToValidate="txtCode" CssClass="failureNotification" ErrorMessage="* Xin vui lòng nhập mã số trong hình."
                        ValidationGroup="LoginUserValidationGroup">* Xin vui lòng nhập mã số trong hình.<br /></asp:RequiredFieldValidator>
                    <div class="failureNotification" runat="server" id="lblError">
                    </div>
                </div>
                <div class="ctLogin" style="margin-top: 20px;">
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Tên đăng nhập</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtUserName" ClientIDMode="Static" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Mật khẩu</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtPassword" ClientIDMode="Static" runat="server" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Xác nhận mật khẩu</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtPassword2" ClientIDMode="Static" runat="server" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Email</p>
                        </div>
                        <div class="login_right">
                            <asp:TextBox ID="txtEmail" ClientIDMode="Static" runat="server"></asp:TextBox>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="sign_left">
                            <p class="pLogin">
                                Nhập mã số trong hình</p>
                        </div>
                        <div class="login_right" style="width: 230px; float: left;">
                            <asp:TextBox ID="txtCode" ClientIDMode="Static" runat="server" Width="215"></asp:TextBox>
                        </div>
                        <div style="width: 150px; float: left;">
                            <img alt="Visual verification" title="Hãy gõ lại các ký tự như trong hình." src="/Services/Capcha.ashx"
                                id="imgVerify" style="border: solid 1px #000;" /><a href="javascript:ChangeImage('imgVerify');"
                                    title="Thay hình khác"><img src="/images/btn_Refresh.gif" style="border: 0px; margin-left: 5px;"
                                        width="32" height="32" alt="Refresh" /></a>
                        </div>
                    </div>
                    <div class="loginLine">
                        <div class="loginLine">
                            <div class="sign_left" style="float: left;">
                            </div>
                            <div class="login_right" style="float: right;">
                                <asp:Button ID="RegisterButton" runat="server" CssClass="submit" Style="background-color: rgb(33, 117, 155);"
                                    CommandName="Login" Text="Đăng ký" ValidationGroup="LoginUserValidationGroup"
                                    OnClick="RegisterButton_OnClick" />
                                <input type="button" name="btnCancel" class="submit" style="color: #000;" id="btnCancel"
                                    onclick="javascript:parent.$.fancybox.close();" value="Hủy bỏ" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
